$OpenBSD: patch-dcmtls_libsrc_tlslayer_cc,v 1.2 2014/04/24 20:33:43 jca Exp $
- picky g++ is picky
- we don't have RAND_egd anymore
--- dcmtls/libsrc/tlslayer.cc.orig	Thu Dec  8 16:48:28 2005
+++ dcmtls/libsrc/tlslayer.cc	Mon Apr 21 19:55:40 2014
@@ -188,7 +188,7 @@ DcmTLSTransportLayer::DcmTLSTransportLayer(int network
    SSLeay_add_all_algorithms();
    seedPRNG(randFile);
 
-   SSL_METHOD *method = NULL;
+   const SSL_METHOD *method = NULL;
    switch (networkRole)
    {
      case DICOM_APPLICATION_ACCEPTOR: 
@@ -375,7 +375,7 @@ void DcmTLSTransportLayer::seedPRNG(const char *randFi
 #endif
   if (randFile)
   {
-    if (RAND_egd(randFile) <= 0)
+    if (1)
     {
       RAND_load_file(randFile ,-1);
     }
